<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/


Route::group([

    'middleware' => ['api'],
    'prefix' => 'auth'

], function ($router) {

//    Route::post('login', 'AuthController@login');
//    Route::post('regist', 'AuthController@regist');
//    Route::post('binding', 'AuthController@binding');
//    Route::post('mini-login', 'AuthController@miniProgramLogin');

    Route::post('hlogin', 'AuthController@hlogin');


});


Route::group([

    'middleware' => ['api','auth.refresh'],
    'prefix' => 'member'

], function ($router) {

    Route::post('logout', 'AuthController@logout');
    Route::post('refresh', 'AuthController@refresh');
    Route::post('myinfo', 'MemberController@myinfo');

});

//质检
Route::group([
    'middleware' => ['api','auth.refresh'],
    'prefix' => 'qc'
], function ($router) {
    Route::get('list', 'MemberController@QCList');
    Route::get('info/{fid}', 'MemberController@QCInfo');
    Route::get('dtl-info/{fid}', 'MemberController@QCDtlInfo');
});